﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.BigData.Hdl.HttpModel
{
    /// <summary>
    /// 通用站点信息查询接口响应
    /// </summary>
    public class HdlScadaStationInfoResponse : HdlScadaResponseResult
    {
        public List<HdlScadaStationInfoResponseData> Response { get; set; }
    }

    public class HdlScadaStationInfoResponseData
    {
        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 类别[pipe:管网；factory:厂站]
        /// </summary>
        public string cate { get; set; }

        /// <summary>
        /// 站点编码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 分区编码
        /// </summary>
        public string dma { get; set; }

        /// <summary>
        /// 分区名称
        /// </summary>
        public string dma_name { get; set; }

        /// <summary>
        /// 站点下的设备
        /// </summary>
        public List<Equipment> equipments { get; set; }

        /// <summary>
        /// 站点扩展信息
        /// </summary>
        public List<Ext_info> ext_info { get; set; }

        /// <summary>
        /// 高德坐标
        /// </summary>
        public string gdposition { get; set; }

        /// <summary>
        /// 组织编码
        /// </summary>
        public string group { get; set; }

        /// <summary>
        /// 组织名称
        /// </summary>
        public string group_name { get; set;}

        /// <summary>
        /// 标高
        /// </summary>
        public double? height { get; set; }

        /// <summary>
        /// 站点ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 站点信息
        /// </summary>
        public string info { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 站点这边的排序字段
        /// </summary>
        public int order { get; set; }

        /// <summary>
        /// 坐标
        /// </summary>
        public string position { get; set; }

        /// <summary>
        /// 站点类型
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 站点类型名称
        /// </summary>
        public string type_name { get; set; }
    }

    /// <summary>
    /// 站点下的设备
    /// </summary>
    public class Equipment
    {
        /// <summary>
        /// 设备编码bm
        /// </summary>
        public string bm { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string code { get; set;}

        /// <summary>
        /// 设备名
        /// </summary>
        public string name { get; set;}

        /// <summary>
        /// 设备类型
        /// </summary>
        public string type { get; set;}

        /// <summary>
        /// 设备类型名
        /// </summary>
        public string type_name { get; set;}
    }

    /// <summary>
    /// 站点扩展信息
    /// </summary>
    public class Ext_info
    {
        /// <summary>
        /// 扩展字段code
        /// </summary>
        public string fcode { get; set; }

        /// <summary>
        /// 扩展字段id
        /// </summary>
        public string fid { get; set;}

        /// <summary>
        /// 扩展字段名称
        /// </summary>
        public string fname { get; set;}

        /// <summary>
        /// 扩展字段排序
        /// </summary>
        public int forder { get; set;}

        public string fproperty { get; set;}

        /// <summary>
        /// 扩展字段类型
        /// </summary>
        public string ftype { get; set;}

        /// <summary>
        /// 扩展字段值
        /// </summary>
        public string fvalue { get; set;}

        /// <summary>
        /// 站点ID
        /// </summary>
        public string stid { get; set;}

        /// <summary>
        /// 站点名称
        /// </summary>
        public string stname { get; set;}

        /// <summary>
        /// 站点排序
        /// </summary>
        public int storder { get; set;}
    }
}
